<?php

namespace common\models\cms;

use Yii;

/**
 * This is the model class for table "{{%cms_special_tag}}".
 *
 * @property int $id
 * @property int $special_id 卡券ID
 * @property int $tag_id
 * @property string|null $name 标签名称
 * @property string|null $thumb 标签图标
 * @property string|null $description 标签备注
 * @property int $created_at
 * @property int $updated_at
 */
class CmsSpecialTag extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%cms_special_tag}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['special_id', 'tag_id', 'created_at', 'updated_at'], 'integer'],
            [['name', 'description'], 'string', 'max' => 100],
            [['thumb'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'special_id' => '卡券ID',
            'tag_id' => 'Tag ID',
            'name' => '标签名称',
            'thumb' => '标签图标',
            'description' => '标签备注',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }

}
